html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: url('../image/bg_website.png') no-repeat center center fixed;
    background-size: cover;
}

main {
    flex: 1; /* pushes footer to bottom when content is short */
}

footer {
    background-color: #555; /* keep your existing footer style */
    color: white;
}


.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.filters select {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.red-line {
    width: 80%;
    height: 3px;
    background: red;
    margin: 15px auto;
}

.centre-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    gap: 20px;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.centre-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.centre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.centre-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.centre-card h3 {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #333;
}

.centre-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.centre-card button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.centre-card button:hover {
    background: #0056b3;
}


  .page-header {
    display: flex;
    justify-content: center; /* center title horizontally */
    align-items: center; /* center vertically */
    position: relative;
    padding: 20px 0;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
}

.partner-btn {
    position: absolute; /* keep button on the far right */
    right: 0;
    background-color: #c62828;
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.partner-btn:hover {
    background-color: #a71d1d;
}

.partner-btn.disabled {
    background-color: gray;
    cursor: not-allowed;
}
